import { Request, Response, NextFunction } from 'express';
import { AppError } from '../types/index';

/**
 * 404 Not Found 中间件
 */
const notFound = (req: Request, res: Response, next: NextFunction): void => {
  const error = new AppError(`Route ${req.originalUrl} not found`, 404);
  next(error);
};

export default notFound;